#include <stdio.h>

int fun(int a, int b)
{
    return a % b;
}

void main()
{
    printf("%d\n", fun(3, 7));// 3
    printf("%d\n", fun(7, 3));// 1
    printf("%d\n", fun(30, 70));// 30
    printf("%d\n", fun(70, 30));// 10

    printf("%d\n", 30 / 70);// 0
    printf("%d\n", 70 / 30);// 2

    printf("%d\n", fun(11, 10));// 1
    printf("%d\n", fun(10, 11));// 10

    printf("%d\n", 11 / 10);// 1
    printf("%d\n", 10 / 11);// 0
    printf("%d\n", 1 % 10); // 1
    printf("%d\n", 101 % 100); // 1
    printf("%d\n", 201 % 100); // 1
}

